package cn.yangliu.service.impl;

//import cn.yangliu.repository.UserRepository;
//import cn.yangliu.mybatis.mapper.UserMapper;

import cn.yangliu.entity.MybatisUser;
import cn.yangliu.mybatis.mapper.UserMapper;
import cn.yangliu.service.MybatisUserService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * 作者 杨柳
 * 创建时间 2017-08-22 01:29
 */

@Service
@Transactional
public class MybatisUserServiceImpl extends ServiceImpl<UserMapper, MybatisUser> implements MybatisUserService {


    @Resource
    private UserMapper userMapper;



    private MybatisUser create() {
        MybatisUser user = new MybatisUser();
        user.setUsername("张三mybatis");
        user.setPassword("123456");
        return user;
    }

}
